Xbasic

SYS_FOCUS_PUT Function

Syntax

Window_Handle as N = SYS_FOCUS_PUT([C window_name])

Arguments

window_name

Optional. Default = Alpha Anywhere window. The name of the window to receive focus.

Description

Set focus to a program given a window name, alpha anywhere window if no window specified.

Discussion

SYS_FOCUS_PUT() sends focus to a specific program that is identified by its Window Title. This window becomes the active window, and its Window_Handle is returned. If you omit the Window_Title parameter, the window handle for the Alpha Anywhere window is returned.

Example

Activate the Notepad application which is currently running.

sys_focus_put("Notepad - README.TXT")

Limitations

Desktop applications only.

See Also